package com.quan.system.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.quan.common.core.MyBaseServiceImpl;
import com.quan.system.entity.SystemPermission;
import com.quan.system.mapper.SystemPermissionMapper;
import com.quan.system.service.SystemPermissionService;

/**
 * <p>
 * 系统-菜单权限 服务实现类
 * </p>
 *
 * @author 杨浩泉
 * @since 2019-06-06
 */
@Service
public class SystemPermissionServiceImpl extends MyBaseServiceImpl<SystemPermissionMapper, SystemPermission> implements SystemPermissionService {

	@Override
	public List<SystemPermission> findPermissionByMenuId(Serializable menuId) {
		
		QueryWrapper<SystemPermission> queryWrapper = new QueryWrapper<SystemPermission>();
		queryWrapper.eq("menu_id", menuId);
		
		return super.list(queryWrapper);
	}

}
